﻿using System;
namespace OnlineTestModel
{
	#region
   
	/// <summary>
	/// questions:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class Questions
	{
		public Questions()
		{}
		#region Model
		private int _id;
		private string _questionname;
		private int _versionnumber;
		private string _predifficult;
		
		private string _chapter;
		private string _part;
		private int _questiontypeid;
		private int? _blankline;
		private string _correctanswer;
		
		private int _parentid;
        private int _correctcount;
        private int _totalcount;
		private string _truedifficult;
		private string _partitiondegree;
		private int? _courseid;
		private int? _status;
		/// <summary>
		/// 
		/// </summary>
		public int Id
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string QuestionName
		{
			set{ _questionname=value;}
			get{return _questionname;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int VersionNumber
		{
			set{ _versionnumber=value;}
			get{return _versionnumber;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string PreDifficult
		{
			set{ _predifficult=value;}
			get{return _predifficult;}
		}
		
		/// <summary>
		/// 
		/// </summary>
		public string Chapter
		{
			set{ _chapter=value;}
			get{return _chapter;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Part
		{
			set{ _part=value;}
			get{return _part;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int QuestionTypeId
		{
			set{ _questiontypeid=value;}
			get{return _questiontypeid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? BlankLine
		{
			set{ _blankline=value;}
			get{return _blankline;}
		}
        /// <summary>
        /// 
        /// </summary>
        public int CorrectCount
        {
            set { _correctcount = value; }
            get { return _correctcount; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int TotalCount
        {
            set { _totalcount = value; }
            get { return _totalcount; }
        }
		/// <summary>
		/// 
		/// </summary>
		public string CorrectAnswer
		{
			set{ _correctanswer=value;}
			get{return _correctanswer;}
		}
		
		/// <summary>
		/// 
		/// </summary>
		public int ParentId
		{
			set{ _parentid=value;}
			get{return _parentid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string TrueDifficult
		{
			set
			{
				
					_truedifficult = value;
			  
				

			}
		
			get
			{
				
					return _truedifficult;
			   
				
			}
		}
		/// <summary>
		/// 识别度
		/// </summary>
		public string PartitionDegree
		{
			set{ _partitiondegree=value;}
			get{return _partitiondegree;}
		}
		/// <summary>
		/// 所属课程id
		/// </summary>
		public int? CourseId
		{
			set
			{
			   _courseid  = value;
			}
			get
			{
				
					return _courseid;
			   
			}
		}
		/// <summary>
		/// 0为禁用，1为启用
		/// </summary>
		public int? Status
		{
			set { _status = value; }
			get { return _status; }
		}
		#endregion Model

	}
	#endregion
	#region
	 public class QuestionEx
	{
		public QuestionEx()
		{
			Id = 0;
			Type = 0;
			Score = 0;
			Difficulty = 0.00;
			Points =0;
		}

		public QuestionEx(QuestionEx p)
		{
			this.Id = p.Id;
			this.Type = p.Type;
			this.Score = p.Score;
			this.Difficulty = p.Difficulty;
			this.Points = p.Points;
		}

		/// <summary>
		/// 编号
		/// </summary>
		public int Id { get; set; }

		/// <summary>
		/// 题型（1、2、3、4、5对应单选，多选，判断，填空，问答）
		/// </summary>
		public int Type { get; set; }

		/// <summary>
		/// 分数
		/// </summary>
		public int Score { get; set; }

		/// <summary>
		/// 难度系数
		/// </summary>
		public double Difficulty { get; set; }

		/// <summary>
		/// 所属章节，2章13节使用2.13五章六节5.06
		/// </summary>
		public int Points { get; set; }

	} 

	#endregion
}

